package com.shenhao.hpfa.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

@Getter
@Setter
@ToString
public class Payload<T> {
    public static final Payload<DeviceInfo> EMPTY_PAYLOAD = new Payload<>();

    @JsonProperty("SysTime")
    private String sysTime;

    @JsonProperty("bid")
    private Integer bid;

    @JsonProperty("mid")
    private String mid;

    @JsonProperty("DeviceSN")
    private String deviceSn;

    @JsonProperty("ip")
    private String ip;

    @JsonProperty("Children")
    private List<T> children;

    @JsonProperty("result")
    private Boolean result;

    @JsonProperty("message")
    private Integer message;
}